package com.mybatisplus.demo.design_patterns.section_8;

public class Main {

    public static void main(String[] args) throws CloneNotSupportedException {

        Person p1 = new Person(1, "chen");
        Person p4 = p1;
        System.out.println(p1);
        System.out.println(p4);


        Person p2 = (Person) p1.clone();
        Person p3 = p1;
        System.out.println(p2);
        System.out.println(p3);
    }
}
